home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PNewLayer.cpp < prev    next >
C/C++ Source or Header  |  1996-08-19  |  910b  |  40 lines

  1. /*
  2.  *--- PNewLayer.cpp --------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 3:29 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PNewLayer.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PNewLayer.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PNewLayer::PNewLayer(
  16.                 const char     * sLayerName,
  17.                 short         nShow,
  18.                 short         nLock,
  19.                 short         nColorIndex,
  20.                 long         lRed,
  21.                 long         lGreen,
  22.                 long         lBlue)
  23.  
  24. {
  25.     PRequestBuf request(strlen(sLayerName)  + 20);
  26.     
  27.     request     <<    sLayerName
  28.                 <<    nShow
  29.                 <<    nLock
  30.                 <<    nColorIndex
  31.                 <<     lRed
  32.                 <<    lGreen
  33.                 <<    lBlue;
  34.  
  35.     PCommand command(pm_newlayer, request);
  36. }
  37.  
  38.  
  39. // end of PNewLayer.cpp
  40.